package designPattern.builder建造者模式.demo01;

// 指挥者: 核心 负责构建一个工程
public class Director {
    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public Product build() {
        builder.buildA();
        builder.buildB();
        builder.buildC();
        return builder.getResult();
    }
}
